home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / w.z / w
Text File  |  1998-10-20  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. WWWW((((1111))))                                                                      WWWW((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      w - who is on and what they are doing
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      wwww [ ----ffffhhhhllllssssuuuuWWWW ] [ user ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _w prints a summary of the current activity on the system, including what
  16.      each user is doing.  The heading line shows the current time of day, how
  17.      long the system has been up, the number of users logged into the system,
  18.      and the load averages.  The load average numbers give the number of jobs
  19.      in the run queue averaged over 1, 5 and 15 minutes.
  20.  
  21.      The fields output are:  the user's login name, the name of the tty the
  22.      user is on, the host from which the user is logged in (generally the
  23.      session's $DISPLAY variable: see _xxxx_dddd_mmmm(1)), the time the user logged on,
  24.      the length of time since the user last typed anything, the CPU time used
  25.      by all processes and their children on that terminal, the CPU time used
  26.      by the currently active processes, the name and arguments of the current
  27.      process.
  28.  
  29.      The options are:
  30.  
  31.      ----hhhh   suppresses the heading.
  32.  
  33.      ----uuuu   displays the heading only (same as _u_p_t_i_m_e(1)).
  34.  
  35.      ----ssss   displays a short form of output.  In the short form, the tty is
  36.           abbreviated, the login time and cpu times are left off, as are the
  37.           arguments to commands.
  38.  
  39.      ----llll   gives the long output, which is the default.
  40.  
  41.      ----ffff   suppresses the ``from'' field.
  42.  
  43.      ----WWWW   shows a wider field for the program name and displays the ``from''
  44.           field on a separate line, untruncated.  (The _uuuu_tttt_mmmm_pppp_xxxx _uuuu_tttt______hhhh_oooo_ssss_tttt field
  45.           accommodates a 256-character string, but most commands truncate
  46.           before displaying it).
  47.  
  48.      If a _u_s_e_r name is included, the output will be restricted to that user.
  49.  
  50. NNNNOOOOTTTTEEEESSSS
  51.      _wwww(1) and _wwww_hhhh_oooo(1) can report different idle times for the same line.  _wwww
  52.      will report the time elapsed since input occurred, while _wwww_hhhh_oooo will report
  53.      the time elapsed since output occurred (roughly speaking).  If there is a
  54.      job running that produces output, the idle times will differ between the
  55.      two programs:
  56.  
  57.      _bbbb_aaaa_bbbb_yyyy_llll_oooo_nnnn_:::: who -Hu
  58.      NAME       LINE         TIME          IDLE    PID  COMMENTS
  59.      root       ttyd1        Jul  6 10:37   .     1955  alt console
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. WWWW((((1111))))                                                                      WWWW((((1111))))
  71.  
  72.  
  73.  
  74.      _bbbb_aaaa_bbbb_yyyy_llll_oooo_nnnn_:::: w
  75.      User     tty from        login@  idle   JCPU   PCPU  what
  76.      root     d1             10:37am  5:54     23     23  tail -f SYSLOG
  77.  
  78.      _wwww_aaaa_nnnn_dddd_aaaa_:::: w -W
  79.        6:06am  up 755 days, 13:53,  6 users,  load average: 0.11, 0.10, 0.11
  80.      User     tty       login@  idle   JCPU   PCPU  what
  81.      jimclark ttyq36    6:06am  1:56                -ksh
  82.               192.111.17.42
  83.      tj       ttyq33    Fri 8am         8:21      6  rlogin peanut.csd
  84.               :0.0
  85.      ed       ttyq38    6:11am            1         w -W
  86.               gate-bonnie.wpd.sgi.com:0.0
  87.  
  88. FFFFIIIILLLLEEEESSSS
  89.      /var/adm/utmp
  90.      /dev/kmem
  91.  
  92. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  93.      _xxxx_dddd_mmmm(1), _wwww_hhhh_oooo(1), _pppp_ssss(1), _uuuu_pppp_tttt_iiii_mmmm_eeee_((((_1111_))))
  94.  
  95. BBBBUUUUGGGGSSSS
  96.      The notion of the ``current process'' is muddy.  The current algorithm is
  97.      ``the highest numbered process on the terminal that is not ignoring
  98.      interrupts, or, if there is none, the highest numbered process on the
  99.      terminal''.  This fails, for example, in critical sections of programs
  100.      like the shell and editor, or when faulty programs running in the
  101.      background fork and fail to ignore interrupts.  (In cases where no
  102.      process can be found, _w prints ``-''.)
  103.  
  104.      The CPU time is only an estimate, in particular, if someone leaves a
  105.      background process running after logging out, the person currently on
  106.      that terminal is ``charged'' with the time.
  107.  
  108.      Background processes are not shown, even though they account for much of
  109.      the load on the system.
  110.  
  111.      Sometimes processes, typically those in the background, are printed with
  112.      null or garbaged arguments.  In these cases, the name of the command is
  113.      printed in parentheses.
  114.  
  115.      _w does not know about the new conventions for detection of background
  116.      jobs.  It will sometimes find a background job instead of the right one.
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.